package com.back.supplier.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import com.back.supplier.bean.Tbl_supplier;
import com.back.supplier.dao.SupplierDao;

@Service
public class SupplierService {

	@Autowired
	private SupplierDao dao;
	
	
	public int addSupplier(Tbl_supplier supplier){
		return dao.addSupplier(supplier);
	}
	public List<Tbl_supplier> findSupplier(Tbl_supplier supplier){
		return dao.findSupplier(supplier);
	}

	public int delSupplier(Integer uuid){
		return dao.delSupplier(uuid);
	}
	
	public int update(Tbl_supplier supplier){
		return dao.update(supplier);
	} 
	public Tbl_supplier findById(Integer uuid){
		return dao.findById(uuid);
	}
}
